<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Market_model extends MY_Model
{
    function Market_model()
    {
        parent::MY_Model();
    }
	function ww_send_resoure($uid, $from_oasis_orderid, $to_uid, $to_oasis_orderid, $sfood, $swood, $smetal, $spetro, $eachtime, $type)
	{
		$this->exeQuery("CALL ww_send_resoure('$uid', '$from_oasis_orderid', '$to_uid', '$to_oasis_orderid', '$sfood', '$swood', '$smetal', '$spetro', '$eachtime', '$type');");
	}
	function ww_get_field_around_coor($userid, $user_oasis_orderid, $rx, $ry)
	{
		return $this->getRows("CALL ww_get_field_around_coor('$userid', '$user_oasis_orderid', '$rx', '$ry');", 1);
	}
	function ww_get_info_field_coor($rx, $ry, $xx, $yy)
	{
		return $this->getRows("CALL ww_get_info_field_coor('$rx', '$ry', '$xx', '$yy');", 0);
	}
}